==
% ConTeXt ver: 2023.09.26 18:19 LMTX
\setupmarginrule[1][rulecolor=darkred]
\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]
\starttext
\startmarginrule[1]
\input ward
\stopmarginrule
\blank
\startsidebar[Sidebar]
\input zap
rule mechanisms.
> MWE:
>
> ==
> % ConTeXt ver: 2023.09.26 18:19 LMTX
>
> \setupmarginrule[1][rulecolor=darkred]
>
> \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
> \setupsidebar[rulecolor=darkgreen]
>
>
tg-context@ntg.nl>>
Date 10/23/2023 6:24:38 PM
Subject [NTG-context] sidebar and marginrule not working
Dear gang,
The appears to be something wrong with the sidebar and marginrule mechanisms.
MWE:
==
% ConTeXt ver: 2023.09.26 18:19 LMTX
\setupmarginrule[1][rulecolor=darkred]
\definesid
arginrule not working
Dear gang,
The appears to be something wrong with the sidebar and marginrule mechanisms.
MWE:
==
% ConTeXt ver: 2023.09.26 18:19 LMTX
\setupmarginrule[1][rulecolor=darkred]
\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[
something wrong with the sidebar and marginrule mechanisms.
MWE:
==
% ConTeXt ver: 2023.09.26 18:19 LMTX
\setupmarginrule[1][rulecolor=darkred]
\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor=darkgreen]
\starttext
Dear gang,
The appears to be something wrong with the sidebar and marginrule mechanisms.
MWE:
==
% ConTeXt ver: 2023.09.26 18:19 LMTX
\setupmarginrule[1][rulecolor=darkred]
\definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
\setupsidebar[rulecolor
t;withcolor linecolor ;
>>p := p + stp ;
>>exitif arclength( a -- p ) > arclength( a -- b ) ;
>>endfor ;
>>endgroup ;
>>clip currentpic
you, Hans.
To save this example, I wikified \setupsidebar, \definesidebar and
\startsidebar...\stopsidebar.
If you do something on alternatives, let me know.
Massi
___
If your question is of interest to others as w
should be clipped not to exceed the last
line of the sidebarred text (see the last example): how can that be done?
Massi
\definesidebar[zigzag1][rulecolor=black,distance=4pt,rulethickness=1pt,alternative=2]
\definesidebar[zigzag2][rulecolor=red,distance=4pt,rulethickness=1pt,alternative=3
r (created with \definesidebar) to
them.
However, when I surround for example my typing with a textbackground like this
\starttextbackground[code]
\startCpp
...
\stopCpp
\stoptextbackground
or by putting the textbackground commands in "before=" and "after=" of my
typing, then there wi
ed in horizontal mode,
> since you might want to mark in the margin only a part of a paragraph.
> In that case the bar would extend from the start of the marked text
> until its end.
> The default behavior of the bar is extending from the top of the first
> line to the bottom of the la
could keep
> \defineenumeration[Theorem][before=\startsidebar, after=stopsidebar]
or, better:
\definesidebar[Theorem][bottomoffset=...]
\defineenumeration[Theorem][before={\startsidebar[Theorem]},after=\stopsi
the sidebar to enhance \proclaim like texts.
Best regards: OK
begin test-sidebar-proclaim.tex
%%%
\definesidebar[ProclaimSidebar]
\setupsidebar[ProclaimSidebar]
[rulecolor=darkred,
rulethickness=1pt,
alternative=2,
distance=5mm,
% bottomoffset=-7mm
-bar.mkiv, there is nothing that I can
see that supports placing marginrules, or the sidebars on which they are
built, into the right margin. It looks like a job for Hans.
Hm, so you didn't experiment ...
\starttext
\definesidebar[whow][rulecolor=green,distance=0pt]
\definesidebar[oeps][rulecolor
? When I put it into \definesidebar, the sidebar
disappears, and when I write \startsidebar[oeps,alternative=1]
it reverts to the default left sidebar (albeit dotted).
Matthias
\setupmargindata [left]
[location=right,
style=\bfxx]
\setupmarginframed[left
in the alternative=1
option to get dotted lines? When I put it into \definesidebar, the sidebar
disappears, and when I write \startsidebar[oeps,alternative=1]
it reverts to the default left sidebar (albeit dotted).
Matthias
Matthias,
You can use distance= in \setupmarginrules to achieve
16 matches
Mail list logo